﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:infrastructure="clr-namespace:StockholmsStad.Windows.UI.Infrastructure;assembly=StockholmsStad.Windows.UI.Infrastructure"
    xmlns:cal="http://www.codeplex.com/CompositeWPF"
    x:Class="StockholmsStad.Windows.UI.Shell" 
    x:Name="shellWindow"
    WindowStartupLocation="CenterScreen"
    Icon="/StockholmsStad.Windows.UI;component/Resources/Icons/vigpar.ico"
    Title="{Binding ShellTitle}" Width="1024" Height="768" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d">

    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB6D4F3" Offset="0.018" />
            <GradientStop Color="#FFF9FCFF" Offset="0.844" />
            <GradientStop Color="#FF76B3F1" Offset="0.04" />
        </LinearGradientBrush>
    </Window.Background>
    
    <Grid x:Name="mainWindow">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <ItemsControl Grid.Column="0" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.ToolBarRegion}" Background="Transparent" />   
            
            <ContentControl Grid.Column="1" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.ContentRegion}" Background="Transparent" /> <!-- Kräver att man gör en activate i varje medule på vid load -->
        </Grid>
        
    </Grid>
</Window>
